%define commit 50dc3cd132eabfb52c105e2370ac054b56a44216
%define commit_short %(echo %{commit} | head -c6)

Summary(ru_RU.UTF-8): Оформление KDE Plasma 5 для МОС
Summary:	KDE Plasma 5 themes for MOS
Name:		plasma5-look-and-feel-mos
Version:	0
Release:	7.git%{commit_short}.2
License:	GPL-2.0+
Group:		Graphical desktop/KDE
Url:		https://hub.mos.ru
Source0:	https://hub.mos.ru/mos/src/kde/plasma5-look-and-feel-mos/-/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch:	noarch
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5plasma-devel
Requires:	plasma5-desktoptheme-mos
Requires:	plasma5-color-scheme-mos
Provides:	plasma5-look-and-feel-rosa-fresh = %{EVRD}
Conflicts:	plasma5-look-and-feel-rosa-fresh < %{EVRD}
Conflicts:	plasma5-look-and-feel-rosa-fresh > %{EVRD}
# as in plasma5-look-and-feel-rosa-fresh
Provides:	plasma5-look-and-feel-default = %{EVRD}

%description
%summary.

%description -l ru_RU.UTF-8
Оформление KDE Plasma 5 для МОС

%files
%{_kde5_datadir}/plasma/look-and-feel/ru.mos.os.light.desktop
%{_kde5_datadir}/plasma/look-and-feel/ru.mos.os.dark.desktop
%{_kde5_datadir}/kservices5/plasma-lookandfeel-ru.mos.os.dark.desktop.desktop
%{_kde5_datadir}/kservices5/plasma-lookandfeel-ru.mos.os.light.desktop.desktop
%{_metainfodir}/ru.mos.os.dark.desktop.appdata.xml
%{_metainfodir}/ru.mos.os.light.desktop.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
